import { RouteRecordRaw } from 'vue-router';

export const moldRouter: RouteRecordRaw = {
  path: '/mold',
  name: 'mold',
  redirect: '/mold/norm/yjfwmb',
  component: () => import('@/layout/routerView/parent.vue'),
  meta: {
    title: '模型管理',
    isLink: '',
    isHide: false,
    isKeepAlive: true,
    isAffix: false,
    isIframe: false,
    roles: ['admin', 'common'],
    icon: 'iconfont icon-crew_feature',
  },
  children: [
    {
      path: '/mold/norm',
      name: 'norm',
      redirect: '/mold/norm/yjfwmb',
      component: () => import('@/layout/routerView/parent.vue'),
      meta: {
        title: '预警指标体系',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin', 'common'],
        icon: 'iconfont icon-crew_feature',
      },
      children: [
        {
          path: '/mold/norm/yjfwmb',
          name: 'yjfwmb',
          component: () => import('@/views/mold/norm/yjfwmb/index.vue'),
          meta: {
            title: '预警服务目标',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
        {
          path: '/mold/norm/gdzlwd',
          name: 'gdzlwd',
          component: () => import('@/views/mold/norm/gdzlwd/index.vue'),
          meta: {
            title: '耕地质量维度',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
        {
          path: '/mold/norm/gdzlzb',
          name: 'gdzlzb',
          component: () => import('@/views/mold/norm/gdzlzb/index.vue'),
          meta: {
            title: '耕地质量指标',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },

        {
          path: '/mold/norm/yjzbgl',
          name: 'yjzbgl',
          component: () => import('@/views/mold/norm/yjzbgl/index.vue'),
          meta: {
            title: '预警指标管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
        {
          path: '/mold/norm/zbfzgl',
          name: 'zbfzgl',
          component: () => import('@/views/mold/norm/zbfzgl/index.vue'),
          meta: {
            title: '指标阈值管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
        {
          path: '/mold/norm/yjjdgl',
          name: 'yjjdgl',
          component: () => import('@/views/mold/norm/yjjdgl/index.vue'),
          meta: {
            title: '预警警度管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
      ],
    },
    {
      path: '/mold/model',
      name: 'moldModel',
      redirect: '/mold/model/index',
      component: () => import('@/layout/routerView/parent.vue'),
      meta: {
        title: '预警模型管理',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin', 'common'],
        icon: 'iconfont icon-crew_feature',
      },
      children: [
        {
          path: '/mold/model/index',
          name: 'moldMoldIndex',
          component: () => import('@/views/mold/model/index/index.vue'),
          meta: {
            title: '预警模型管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
        {
          path: '/mold/model/dic',
          name: 'moldModelDic',
          component: () => import('@/views/mold/model/dics/index.vue'),
          meta: {
            title: '模型字典管理',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
      ],
    },
    {
      path: '/mold/message',
      name: 'moldMessage',
      component: () => import('@/views/mold/message/index.vue'),
      meta: {
        title: '预警消息管理',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin', 'common'],
        icon: 'iconfont icon-crew_feature',
      },
    },
  ],
};
